package com.jrx.anytxn.transaction.dto.payment;

import com.jrx.anytxn.transaction.dto.common.CommonReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;


/**
 * @program: anytxn-cf-parent
 * @description:
 * @author: xiaoyu.jing
 * @date: 2021-06-09 13:53
 **/
@ApiModel(value = "退款请求实体", description = "退款请求实体")
public class RefundReq extends CommonReq {
    /**
     * 原交易流水号
     */
    @ApiModelProperty(value = "原交易流水号",required = true)
    @NotEmpty(message = "原交易流水号不可空")
    private String origSeqNo;

    /**
     * 退款金额
     */
    @DecimalMin(value="0",message = "退款金额必需大于0")
    private BigDecimal refundAmount;


    public String getOrigSeqNo() {
        return origSeqNo;
    }

    public void setOrigSeqNo(String origSeqNo) {
        this.origSeqNo = origSeqNo;
    }

    public BigDecimal getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
    }

}
